import Cookies from 'js-cookie'
const tokenName = 'vue3-heimazhishu'

//存入token
export function setToken(token){
    // localStorage.setItem(tokenName,token)
    return Cookies.set(tokenName, token)
}

//读取token
export function getToken(){
    return Cookies.get(tokenName)
}

//删除token
export function remove(){
    return Cookies.remove(tokenName)
}